#include "IPGetter.h"
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdio.h>
// link with Ws2_32.lib for displaying our IP address!!
#pragma comment (lib, "Ws2_32.lib")
#include "Server.h"
void IPGetter::GetIP()
{
    hostent* localHost;
    // Get the local host information
    localHost = gethostbyname("");
    char* ip = inet_ntoa (*(struct in_addr *)*localHost->h_addr_list);
    TheServer::Instance()->SetIP(ip);
}